public class Text {
    public static void main(String[] args) {
        List list = new List();
/*        list.addFirst(1);
        list.addFirst(2);
        list.addFirst(3);
        list.addFirst(4);
        list.addFirst(5);
        for (Integer i : list) {
            System.out.println(i);
        }*/
        System.out.println("----------------");
        list.addLst(1);
        list.addLst(2);
        list.addLst(6);
        list.addLst(3);
        list.addLst(6);
        list.addLst(1);


        for (Integer i : list) {
            System.out.println(i);
        }
        System.out.println("==================");
        //list.removeRecursion(list,6);
/*        List list1 = list.removeRecursion(list,6);
        for (Integer i : list1) {
            System.out.println(i);
        }*/
/*        list.deleteCount(list,5);
        for (Integer integer : list) {
            System.out.println(integer);
        }*/
        List list1 = list.removeRecursion(list, 6);
        for (Integer integer : list1) {
            System.out.println(integer);
        }

    }
}
